package online.heycm.rbac.param.basic;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author hey
 * @version 1.0
 * @date 2024/1/17 15:27
 */
@Data
public class RoleEditReq implements Serializable {

    private static final long serialVersionUID = 5583685536526073985L;

    /**
     * 角色id
     */
    @NotNull
    private Integer roleId;

    /**
     * 角色中文名
     */
    @NotBlank
    private String roleZh;

    /**
     * 角色状态：0-禁用 1-启用
     */
    @NotNull
    @Max(1)
    @Min(0)
    private Integer sts;
}
